/**
 * Authors - Oren Bracha, Rony Lahav & Yehuda Eterman
 * This class represents the Run command. It gets the parameter of the command (run time)
 * and performs the command when needed (by setting global flags on)
 */
public class CmdRun implements ICmd{

	private String runTime; //how much time do we run?
	private String command;	//for printing
	
	CmdRun(String runTime, String command){
		this.runTime=runTime;
		this.command=command;
	}
	
	//updates the run period for the peer
	public void executeCmd(){
		Logger.getInstance().printCommandDetails("run", command);
		proj350.runPeriod = Integer.parseInt(runTime);
	}
}
